extends PlayerStatusBase

func start() ->void:
	actor.play_animation("idle")
	
# 物理桢
func run_physics_process(delta:float) -> void:
	var collision_info = actor.move_and_collision_info()
	if collision_info.get("was_on_floor") && not collision_info.get("is_on_floor"):
		return change_status("Fall")
		
# 绘画桢
func run_process(delta: float) -> void:
	if actor.can_jump():
		return change_to_jump()
		 
	if actor.can_attack(1):
		return change_status("Attack1")
		
	if actor.can_sliding():
		return change_status("SlidingStart")
		
	common_velocity(delta)
	
	if actor.velocity.x != 0:
		change_status("Run")
		return




